package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("需要传入的属性对象")
public class PropertiesForm {

    @ApiModelProperty("属性id")
    @Min(value = 1)
    private Integer propertiesId;
    @ApiModelProperty("属性名")
    @NotNull
    @Length(min = 1)
    private String propertiesName;
    @ApiModelProperty("属性集合")
    private List<String> propertiesValues;
    @ApiModelProperty("属性类别")
    @NotNull
    @Length(min = 1)
    private String propertiesType;

}
